/**
 * 表示一个订单的支付状态。
 * @author jeff
 * 
 */

package com.hk.commons.enm;

public enum LogTypeEnum {
	TYPES_1(1, "修改渠道或推荐码"),

	TYPES_2(2, "修改用户基础信息"),

	TYPES_3(3, "修改订单信息"),

	TYPES_4(4, "修改产品信息"),


	TYPES_5(5, "修改产品回款状态"),

	TYPES_6(6, "修改组织架构"),

	TYPES_10(10, "修改安全设置-回款安全设置");


	private int typeId;

	private String typeMsg;


	LogTypeEnum(int typeId, String typeMsg) {
		this.typeId = typeId;
		this.typeMsg = typeMsg;
	}

	public int getTypeId() {
		return typeId;
	}

	public void setTypeId(int typeId) {
		this.typeId = typeId;
	}

	public String getTypeMsg() {
		return typeMsg;
	}

	public void setTypeMsg(String typeMsg) {
		this.typeMsg = typeMsg;
	}


	public static String getTypeMsg(int i){
		String returnStr = null;
		switch(i){
			case 1: returnStr = LogTypeEnum.TYPES_1.getTypeMsg(); break;
			case 2: returnStr = LogTypeEnum.TYPES_2.getTypeMsg(); break;
			case 3: returnStr = LogTypeEnum.TYPES_3.getTypeMsg(); break;
			case 4: returnStr = LogTypeEnum.TYPES_4.getTypeMsg(); break;
			case 5: returnStr = LogTypeEnum.TYPES_5.getTypeMsg(); break;
			case 6: returnStr = LogTypeEnum.TYPES_6.getTypeMsg(); break;
			case 10: returnStr = LogTypeEnum.TYPES_10.getTypeMsg(); break;
		}
		return returnStr;
	}
}
